<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script type="text/javascript">

    //看下面的代码, 请问输出什么， 并分析原因
    let dog = {name: "大黄", age: 3};

    //老师分析
    //1. 使用对象解构
    //2. namex  undefined
    //3. age 3
    let {namex, age} = dog;
    console.log("namex=", namex, " age=", age); //undefine,3
  </script>
</head>
<body>
</body>
</html>
